import Vue from 'vue'
import VueRouter from "vue-router"
Vue.use(VueRouter)
const router = new VueRouter({
    routes:[{
        path:'/',
        component:()=>import('@/pages/index/index'),
        name:'index'
    },{
        path:'/cart',
        component:()=>import('@/pages/cart/cart'),
        name:'cart'
    },{
        path:'/user',
        component:()=>import('@/pages/user/user'),
        name:'user'
    }]
})
export default router
